@Action("teacherAction")
public class TeacherAction extends BaseAction{
 @Autowired
 public TeacherDao teacherDao;
 private List<Teacher> teachers;
 private Teacher teacher;
 private Integer id;
 private String name;
 private String serializeNo;
 private String titile;
 private String subject;
 public String teacherList() {
 teachers = teacherDao.retrieveAllTeachers();
 return "teacherList.jsp";
 }
  
 ...
}